//
// Created by nicemoe on 2021/7/31.
//

#include <iostream>

using namespace std;

int main() {
    char **p;
    char *name[5]{"www.", "hust.", "edu.", "cn"};
    p = name + 1;
    cout << *p << endl;
    p += 2;
    while (*p) {
        cout << **p++ << endl;
    }

    int *a;
    a = new int(2);
    if (a == 0) {
        cout << "申请空间失败" << endl;
        return -1;
    }
    cout << *a;
    delete a;
    return 0;
}
